#include "UartWindow.h"

using namespace etb;

UartWindow::UartWindow(QWidget *parent, Qt::WFlags f) : QDialog(parent, f)
{
  setupUi(this);

  mtw_ = new MyTelnetWidget(this);
  QSizePolicy sizePol(QSizePolicy::Expanding,QSizePolicy::Expanding);;
  setSizePolicy(sizePol);;

  horizontalLayout->addWidget(mtw_);
}

UartWindow::~UartWindow()
{
}

void UartWindow::connect()
{
  mtw_->connectToHost("localhost", 34567);
}

void UartWindow::disconnect()
{
  mtw_->disconnectTelnet();
}
